package com.bjwl.service;

import com.bjwl.pojo.Business;
import com.bjwl.pojo.Orders;
import com.bjwl.pojo.dto.PrintingDto;
import com.bjwl.pojo.vo.AdminOrdersQueryVo;
import com.bjwl.pojo.vo.TimerQueryVo;
import com.bjwl.utils.PageBean;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @Author: dzx
 * @Date:Create：in 2020/4/9 16:48
 * @Description:    派工单逻辑层
 * @Modified By：
 * @Version: 1.0
 */
public interface OrdersService {

    boolean findOrderCardIdById(Integer id);

    List<Orders> findOrdersByBstoreid(Integer branchstoreid);

    public Orders updateShowOrders(Integer oid);

    /**
     * 根据id修改当前派单信息
     * @param orders
     */
    public void updateShowOrders(Orders orders);

    /**
     * 根据当前派单id删除当前派单信息
     * @param oid
     */
    public void deleteOrders(Integer oid);

    /**
     * 总店显示所有派单，并标注所属分店，分页，条件查询
     * @param adminOrdersQueryVo
     * @return
     */
    PageBean<Orders> findAllOrders(AdminOrdersQueryVo adminOrdersQueryVo);

    /**
     * 添加派单
     * @param orders
     */
    public void addOrders(Orders orders);
    Integer findAllOrdersTotalRecord();
    public Integer finOrdersCount(Integer bsid);

    PageBean<Orders> findWorkByBstoreid(Integer pageNum, Integer branchstoreid, Integer orstate , Integer orderid,String ordervalue , String wstarttime ,String wendtime,String servproject);


    public Business addOrdersShowbusin(Integer buid);

    void updateOrstate(Orders orders);

    PrintingDto findPrintingById(Integer id);

    PrintingDto findPrintingByIdtwo(Integer id);

    ArrayList<Orders> findOrdersJob(TimerQueryVo timerQueryVo);
}
